package com.credithc.customers.base.ro;

import com.credithc.customers.base.utils.CustomerUtils;
import lombok.Data;

/**
 * @description: 百朗页面跳转入参
 * @author: dhx
 * @date: 2019/7/8 15:47
 * @param: null
 * @return:
 */
@Data
public class UnifyCreditRo extends CustomerBaseRo {

    private String phone;

    private String channel;

    private String systemSign;

    private String subSystemSign;

    private String verifyCode;

    private String timestamp;

    private String money;

    private String ext1;

    private String ext2;

    private String ext3;

    public static void checkBaseParam(UnifyCreditRo ro) {

        CustomerUtils.checkRequestNo(ro.getRequestNo());
        CustomerUtils.checkPhone(ro.getPhone());
        CustomerUtils.checkSystemSign(ro.getSystemSign());
        CustomerUtils.checkSubSystemSign(ro.getSubSystemSign());
        CustomerUtils.checkTimestamp(ro.getTimestamp());
        CustomerUtils.checkVerifyCode(ro.getVerifyCode());
        CustomerUtils.checkChannel(ro.getChannel());
        CustomerUtils.checkExt1(ro.getExt1());
        CustomerUtils.checkExt2(ro.getExt2());
        CustomerUtils.checkExt3(ro.getExt3());
        CustomerUtils.checkMoney(ro.getMoney());
    }
}
